﻿<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title></title>
</head>
<body>
    <script type="text/javascript">
        var integer = 55;
        var divider = 2;
        var maxDivider = Math.sqrt(integer);
        var prime = true;
        while (prime && (divider <= maxDivider)) {
            if (integer % divider == 0)
            {
                prime = false;
            }
            divider++;
        }
        document.writeln("Is it prime? " + prime);
        console.log("Is it prime? " + prime);
    </script>
</body>
</html>
